package com.fss.home.service;

import com.fss.home.domain.*;

import java.util.List;

/**
 * 贷款申请Service接口
 * 
 * @author ruoyi
 * @date 2024-10-26
 */
public interface HomeService
{

     List<Home> getSwiperImages();
     List<Home> getGoodList();
     List<Product> getProductWithImages();
     List<Category2>getAllCategories();
     List<Product> selectCateToProduct(long cateGoryId, Double priceMin, Double priceMax, int sortType) ;
     Product getProductDetail(Long productId);
     List<ProductSku> getProductSkuByProductId(Long productId);
     List<Delivery> getDeliveryInfoByUserId(Long userId);
      // 新增配送信息
    Long addDeliveryInfo(Delivery delivery);

    // 修改配送信息
    boolean updateDeliveryInfo(Delivery delivery);
    // 删除配送信息
    boolean deleteDeliveryInfo(Long deliveryId);
    //新增商品
    void addProduct(Product productEntity);
    //模糊查询
    List<Product> searchProductsByName(String productName);
    // 删除商品本身
    void deleteProduct(Long productId);
    //修改商品
    void updateProduct(Product product);
    //删除图片
    void deleteImage(Long imageId);
}
